<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 数据类型</title>
</head>
<body>
<h2>JavaScript 布尔值</h2>
<p>布尔值只有两个值：true 或 false</p>

<p id="demo"></p>

<script>
  var x = 7;
  var y = 7;
  var z = 8;
  document.getElementById("demo").innerHTML =
          (x == y) + "<br>" + (x == z);
</script>
</body>
</html>
<!--布尔值经常用在条件测试中-->